﻿using Arc.DairyMan.DairyMan.BusinessLogic;
using Arc.DairyMan.DairyMan.Common;
using Arc.WinForms.Controls;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Arc.DairyMan.DairyMan.UI
{
    public partial class frmChukavnu : ArcForm
    {
        public frmChukavnu()
        {
            InitializeComponent();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnShow_Click(object sender, EventArgs e)
        {
            blMilkCollection _blMilkCollection = new blMilkCollection();
            _blMilkCollection.DS = new DataSet();

            DataTable _dtReport = _blMilkCollection.GetPaymentReport(dtFromDate.Value, dtToDate.Value);

            grdReport.DataSource = _dtReport;
        }
    }
}
